package stock.commons;

public class MovProductParsedData extends ProductParsedData {
	public void addValue(String value) {
		switch (this.counter) {
		case (1):
			setId(value.substring(1, value.length()).trim());
			break;
		case (2):
			setDescripcion(value.substring(1, value.length()).trim().trim().replace("\"", "\\\""));
			break;
		case (7):
			setCantidad(new Integer(value.substring(value.length()-5, value.length())).intValue());
		}
		this.counter++;
	}
}
